<?php

class ActivityValentineGiftPackReward1Action extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * @param $userId
     * @param $activityId
     * @param $reqTime
     * @param $indexId
     * @return SzResponse
     * @throws SzException
     */
    public function execute($userId,$activityId,$indexId,$reqTime)
    {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        return $this->buildResponse(
            array(
                'status' => ActivityService::get()->activityValentineGiftPackReward1($userId,$activityId,$indexId,$reqTime)
            )
        );
    }
}